﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Stock_Add.aspx.cs" Inherits="Stock_Stock_Add" MasterPageFile="../MasterPage.master" %>
<%@ Import Namespace="Common" %>
<%@ Register src="Stock_Left.ascx" tagname="Stock_Left" tagprefix="uc1" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <table cellpadding="0" cellspacing="2" width="100%" border="0">
	<tr>
        <td class="leftTd"  valign="top" width="20%">
            <uc1:Stock_Left ID="Stock_Left1" runat="server" />
        </td>
		<td width="85%" valign="top">
		<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
			<tr>
		        <td class="leftTd"  valign="top">
		        <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
		        	<tr>
		            	<td class="titleStyle"></td>
		            </tr>
		        </table>
		        <br />
		        <table cellpadding="0" cellspacing="1" width="100%" border="0" style="background:#000066;">
	                <form method="post" action="" name="AddForm" onSubmit="return CheckAddNew()">
	                 <input type="hidden" name="Oper" value="AddNews"> 
	                    <tr>
	                        <td class="leftContent">品名：</td>
	                        <td class="RightContent">
	                        <asp:TextBox ID="txt_StName" runat="server" Width="150px" class="face"></asp:TextBox>
	                            &nbsp; &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                                    runat="server" ControlToValidate="txt_StName" ErrorMessage="请填写品名"></asp:RequiredFieldValidator>
                            </td>
	                    </tr>
	                     <tr>
	                        <td class="leftContent">规格：</td>
	                        <td class="RightContent">
	                        <asp:TextBox ID="txt_StSpec" runat="server" Width="150px" class="face"></asp:TextBox>
	                        </td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">单价：</td>
	                        <td class="RightContent">
	                        <asp:TextBox ID="txt_Price" runat="server" Width="80px" class="face"></asp:TextBox>
	                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
                                    runat="server" ControlToValidate="txt_StName" ErrorMessage="请填写单价" 
                                    Display="Dynamic"></asp:RequiredFieldValidator>
	                            <asp:CompareValidator ID="CompareValidator2" runat="server" 
                                    ControlToValidate="txt_Price" ErrorMessage="单价是大于0的数字" Operator="GreaterThan" 
                                    Type="Currency" ValueToCompare="0"></asp:CompareValidator>
	                        </td>
	                    </tr>
	                     <tr>
	                        <td class="leftContent" valign="top" style="padding-top:20px;height:30px;"></td>
	                        <td class="RightContent">
                            <asp:Button ID="btnSubmit" runat="server" Text="添 加" CssClass="button" 
                                    onclick="btnSubmit_Click" />
	                        &nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重 置" name="btnReset" class="button"></td>
	                    </tr>
	                  </form>  
	                </table>
				</td>
		    </tr>
		</table>
        </td>
    </tr>
</table>
</asp:Content>

